package com.Pan.mapper;

import com.Pan.pojo.PecUrl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

// 在对应的Mapper上面继承基本的类 BaseMapper
@Repository // 代表持久层
public interface PecUrlMapper extends BaseMapper<PecUrl> {

    @Select("SELECT * FROM `new_pec_url` WHERE new_response_id IS NULL LIMIT 0,1000000")
    List<PecUrl> getNewResponseIdNull();

    @Select("SELECT MAX(id) FROM `t_base64_rid`")
    Integer getMaxId();


}
